package com.dj.ms.configure;

import com.dj.ms.filter.WebServiceLogCircular;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * <br>
 * <p>
 * - WebMvcConfigurationSupport重构
 * </p>
 *
 * <br>
 *
 * @author ZJG
 * @version 1.0
 * @date 2021/12/1 上午9:21
 */
@Order(Ordered.HIGHEST_PRECEDENCE - 100)
@Configuration
public class SpringMvcConfigSupport {

    @Bean("webServiceLogCircular")
    @ConditionalOnMissingBean(WebServiceLogCircular.class)
    public WebServiceLogCircular springMvcLogFilter() {
        return new WebServiceLogCircular();
    }

}
